<script type="text/javascript">$(function () {
	var url = '${contextPath}script/oa/documentInfo.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			aidQueryRole_documentInfo();
		}
	});
	$('#aidQueryForm').find("input:checkbox, input:radio").not('input.ibtn').uniform();
});
</script>

<div class="widget" style="margin:0px;">
	<div>
		<h3 class="title" style="display:inline-block">请选择公开角色</h3>
		<h3 class="title" style="float:right;">按钮说明：
			<a class="btn" href="javascript:;"><i class="icon-plus-sign"></i> 增加</a>
			<a class="btn" href="javascript:;"><i class="icon-remove-sign"></i> 删除</a>
			</h3>
	</div>
	<input type="hidden" id="ro_r" value="${p}"/>
	<div class="widget-content">
		<div class="table-title">
			<form id="aidQueryForm">
				<table class="search_term_table">
					<tr>
						<th style="width: 50px;">角色名称</th>
						<td style="width: 120px;">
							<input type="text" class="txt_role_name" name="name" />
						</td>
						<td style="text-align:right; width:160px;">
							<a class="btn btn-info" href="javascript:;" onclick="javascript:aidQueryRole_documentInfo();"><i class="fontello-icon-search-5"></i> 查  询</a>
							<a class="btn btn-info" href="javascript:;" onclick="javascript:chooseRole_documentInfo();"><i class="fontello-icon-ok-circle"></i> 选择完成</a>
						</td>
					</tr>
				</table>
			</form>
			<div>
				<div id="aidQueryResultList" style="width:550px; float:left;"></div>
				<table class="table boo-table table-striped table-content table-hover bg-blue-light" style="width:370px; float:right;">
					<thead>
						<tr><th colspan="3" scope="col">已选择角色</th></tr>
					</thead>
					<tbody id="selectedListBody">
						<#list list as role>
							<tr class="rep">
								<td>${role.name}</td>
								<td>${role.cun}</td>
								<td style="width:30px;">
									<a class="btn btn-small btn-noradius" href="javascript:;" onclick="javascript: deleteRole_documentInfo($(this));"><i class="icon-cancel-circle"></i></a>
										<input type="hidden" class="rc" value="${role.code}" />
										<input type="hidden" class="rn" value="${role.name}" />
								</td>
							</tr>
						</#list>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<input type="hidden" id="t" value="${(type)!''}"/>
<input type="hidden" id="old_oc" value="${(a)!''}"/>
<table id="tempTable" style="display:none;">
	<tr class="rep">
		<td class="n"></td>
		<td class="p"></td>
		<td style="width:30px;">
		<a class="btn btn-small btn-noradius" href="javascript:;" onclick="javascript: deleteRole_documentInfo($(this));">
			<i class="icon-remove-sign"></i>
		</a>
			<input type="hidden" class="rc" value="" />
			<input type="hidden" class="rn" value="" />
		</td>
	</tr>
</table>